<include file="Public/header" title="商品列表" />
<div id="page-wrapper">
    
    <div class="row">
        <div class="col-md-6">
            <a href="{:U('goods/add')}" class="btn btn-success">添加商品</a>
        </div>
        <div class="col-md-6">
            <form action="{:U('goods/index')}" method="post">
                <div class="form-group input-group">
                    <input type="text" class="form-control" name="key" placeholder="输入商品标题、描述或者关键词搜索">
                    <span class="input-group-btn">
                      <button class="btn btn-default" type="button"><i class="fa fa-search"></i></button>
                    </span>
                </div>
            </form>
        </div>
    </div>
    <table class="table table-hover table-striped">
        <thead>
            <tr>
                <th>编号</th>
                <th>标题</th>
                <th>商品名称</th>
                <th>商品关键词</th>
                <th>价格</th>
                <th>数量</th>
                <th>状态</th>
                <th>分类</th>
                <th>上架时间</th>
            </tr>
        </thead>
        <tbody>
        </tbody>
<!--     <div class="clearfix"></div>
    {$page}
    
</div> -->
<include file="Public/footer" />
<foreach name="list" item="v">
            <tr>
                <td>{$v.gid}</td>
                <td>{$v.good_title}</td>
                <td>{$v.good_name}</td>
                <td>{$v.good_keyword}</td>
                <td>{$v.good_price}</td>
                <td>{$v.stock}</td>
                <td>{$v.good_state}</td>
                <td>{$v.name}</td>
                <td>{$v.shelf_time}</td>
                <td><a href="{:U('Goods/add')}?id={$v.gid}">编辑</a> | <a href="{:U('Goods/delete')}?id={$v.gid}" style="color:red;" onclick="javascript:return del('您真的确定要删除吗？\n\n删除后将不能恢复!');">删除</a></td>
            </tr>
</foreach>

</table>
<div>{$page}</div>
		<!-- <td>{$v.id}</td>
                <td>{$v.title}</td>
                <td>
                </td>
                <td>{$v.time|date="Y/m/d H:i:s",###}</td>
                <td>{$v.username}</td>
                <td>{$v.category_title}</td>
                <td><a href="{:U('post/update?id=')}{$v.id}">编辑</a> | <a href="{:U('post/delete?id=')}{$v.id}" style="color:red;" onclick="javascript:return del('您真的确定要删除吗？\n\n删除后将不能恢复!');">删除</a></td> -->